package gttp.nspa.shared.om;

import com.google.gson.annotations.SerializedName;
import com.google.gwt.user.client.rpc.IsSerializable;

public class Locker implements IsSerializable, IEntity {

    @SerializedName("c")
    private String            code;

    @SerializedName("n")
    private String            name;

    @SerializedName("t")
    private boolean           active;

    private transient boolean occupied;

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public boolean isActive() {
        return active;
    }

    public boolean isOccupied() {
        return occupied;
    }

    public void setOccupied(boolean flag) {
        occupied = flag;
    }

    public String toString() {
        return code + name;
    }

}
